<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>50bus-剧本</title>
    <meta name="keywords" content="50bus" />
    <meta name="copyright" content="50bus.cn" />
    <!-- <meta http-equiv="mobile-agent" content="http://www.50bus.cn/" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" /> -->
    <link rel="icon" href="/resources/img/favicon.ico" type="image/x-icon" />
    
    <link rel="stylesheet" type="text/css" href="/resources/css/base.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/globe.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/page.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/module-script.css" media="all" />
    <script type="text/javascript" src="/resources/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/resources/js/jquery.pagination.js"></script>
</head>

<body>
    <div class="header_wrap">
        <div class="header clearfix">
            <div class="fm980 fl clearfix">
                <a href="index.html" class="logo fl"></a>
                   <ul class="nav_box fl">
                    <li><a href="/creative_list.html">形象创意</a></li>
                    <li><a href="/script_list.html">剧本创作</a></li>
                    <li><a href="/render_index.html">动画渲染</a></li>
                    <li><a href="/creative_helper.html">创意助手</a></li>
                </ul>
                <div class="about_box fr">
                    <a href="/about.html">关于我们</a>
                  <#if uid??&&uid!="">
	                    <a href="/user/user_work.html">个人空间</a>
	                    <a href="/logout.html">退出</a>
                    <#else>
	                    <a href="/register.html">注册</a>
	                    <a href="/login.html">登录</a>
                    </#if>
                </div>
                </div>
            </div>
        </div>
    </div>
    <div class="body_wrap">
        <div class="box_2">
	        <div class="handle_bar">
	            <div class="fm980 clearfix">
	            	<div style="display:none;" class="search_key clearfix">
	            		<span class="search_key_item"><span>动漫</span><a href="javascript:;" class="del">X</a></span>
	            		<span class="search_key_item"><span>动漫</span><a href="javascript:;" class="del">X</a></span>
	            	</div>
	                <form class="searchbox clearfix fr" action="" id="search_form">
	                    <input type="text" class="sc_txt fl" name="keyword" value="${RequestParameters.keyword!''}" placeholder="搜索剧本"/>
	                    <input type="submit" value="" class="sc_btn fl" />
	                </form>
	            </div>
	        </div>

	        <div class="fm980">
	        	<div class="filter_bar" style="display:none">
	        		<ul class="clearfix">
	        			<!--<input type="hidden" name="pubtime_sort" value="desc" />
	        			<input type="hidden" name="remain_sort" value="desc" />
	        			<input type="hidden" name="part_sort" value="desc" />
	        			<input type="hidden" name="money_sort" value="desc" />-->
	        			
	        			<li><a href="javascript:void(0);" name="pubtime_sort" data-value="${pubtime_sort}" class=" icon_arrow icon_arrow_up sort_item"> 发布时间</a></li>
	        			<li><a href="javascript:void(0);" name="remain_sort" data-value="${remain_sort}" class="icon_arrow icon_arrow_up sort_item">剩余时间</a></li>
	        			<li><a href="javascript:void(0);" name="part_sort" data-value="${part_sort}" class="icon_arrow icon_arrow_up sort_item">参与人数</a></li>
	        			<li><a href="javascript:void(0);" name="money_sort" data-value="${money_sort}" class="icon_arrow icon_arrow_up sort_item">金额</a></li>
	        			<li>	
	        					<span class="ml10">
	        					<input type="text" name="min_money"/> — <input type="text" name="max_money"/></span>
	        					<input type="submit" value="搜索" class="btn_com_red ml10" />
	        			</li>
	        		</ul>
	        	</div>
	            <div class="script_hot_list mb50">
	                <ul>
	                   <#list scriptList as script> 
	                    <li class="clearfix">
	                        <div class="spt_img_box fl"><a href="/script_collect_detail.html?sid=${script.sid}"><img style="width:96px;height:140px;" src="${script.s_cover}" /></a></div>
	                        <div class="spt_info_gather">
	                            <div class="spt_info">
	                                <div class="spt_opr fr">
	                                    <span class="spt_price">￥${script.collect_budget}</span>
	                                    <#if (script.end_time?datetime("yyyy-MM-dd")) gt (.now) >
		                                	<!--<a class="btn_com_red mb5" href="/script_want_collect.html?sid=${script.sid}">我要投稿</a>-->
		                                	<p class="txt_r">${script.participate_count}投稿</p>
		                                <#else>
		                                	<!--<a class="btn_com_red mb5" href="">我要投票</a>-->
		                                	<p class="txt_r">${script.participate_count}投稿<span class="ml20" style="color:red;">已截止</span></p>
		                                </#if>
	                                </div>
	                                <p class="spt_name">${script.script_title}/${script.collect_type}</p>
	                              	<#list userList as user>
                                  		<#if script.uid==user.uid>  
	                                		<p class="spt_sponsor">发起方：${user.comp}</p>
	                                	</#if>
                                	</#list>
	                            </div>
	                            <div class="spt_desc">
	                                <p class="spt_desc_t">剧情摘要：</p>
	                                <p><#if (script.script_demand?length) gt 100 >${script.script_demand?substring(0,100)}……<#else>${script.script_demand}</#if><a href="/script_collect_detail.html?sid=${script.sid}" class="more">了解更多</a></p>
	                            </div>
	                        </div>
	                    </li>
                   	  </#list>
                   	 <div id="Pagination" class="page_box mb40"></div>
	               </ul>
	            </div>
	        </div>
        </div>
    </div>
   <div class="footer">
        <div class="fm980 clearfix">
            <div class="foot_link foot_link1 fl">
                <a href="/creative_list.html">形象创意</a>
                <a href="/script_list.html">剧本创作</a>
                <a href="/render_index.html">动画渲染</a>
                <a href="/creative_helper.html" >创意助手</a>
            </div>
            <div class="foot_link foot_link2 fl">
                <a href="http://zjusp.zju.edu.cn/">浙大科技园</a>
                <a href="http://www.zju.edu.cn/">浙江大学</a>
                <a href="/about.html" >关于我们</a>
            </div>
            <div class="copy_box fr">
                <img class="mb5" src="/resources/img/foot_text.png" />
                <p>&copy; 2013-2016 All right reserved</p>
                <p><a href="">服务条款</a><a href="">隐私条款</a><a href="">法律条款</a></p>
                <p style="display:none;"><a href="" class="share_icon share_sina"></a><a href="" class="share_icon share_wx"></a></p>
            </div>
        </div>
    </div>
<script type="text/javascript">
$(function(){
	var initPagination = function() {
		$("#Pagination").pagination(${totalCount}, {
			num_edge_entries: 3, //边缘页数
			num_display_entries: 2, //主体页数
			callback: pageselectCallback,
			items_per_page:${pageSize}, //每页显示创意数量
			current_page:${pageIndex}-1,
			prev_text:"<",
			next_text:">",
			ellipse_text:"...",
			prev_show_always:true,
			next_show_always:true,
			async:false
		});
	 }();
	function pageselectCallback(current_page,panel){
		location.href = '/script_search.html?keyword=${keyword}&pubtime_sort=${pubtime_sort}$remain_sort=${remain_sort}&part_sort=${part_sort}&money_sort=${money_sort}&min_money=${min_money}&max_money=${max_money}&pageIndex='+(current_page+1);
	}
	initPagination();
});
$(function(){
	
	/*$(".sort_item").click(function(){
		var items = $(".sort_item");
		var params = "";
		for(var i=0;i<items.length;i++){
			params += (items.eq(i).attr("name")+'='+items.eq(i).attr("data-value")+'&')
		}
		var min_money = $('input[name="min_money"]').val();
		var max_money = $('input[name="max_money"]').val();
		params += ("min_money="+min_money+"&");
		params += ("max_money="+max_money+"&");
		location.href = "/script_search.html?"+params;
	});*/
});
</script>
<script type="text/javascript" src="/resources/js/page-index.js"></script>
<script type="text/javascript">
	<#if uid??&&uid!="">
    	$.post("/common/getUserName.json",{"uid":${uid}},function(data){
    		if(data.name){
    			$('a[href="/user/user_work.html"]').html(data.name+"个人空间");
    		}
    	});
	 </#if>
</script>
</body>
</html>